package com.taotao.common.enums;

public enum FloorType {
	floorType_0("0","Have elevator"),
	floorType_1("1","1 floor no elevator"),
	floorType_2("2","2 floor no elevator"),
	floorType_3("3","3 floor no elevator"),
	floorType_4("4","4 floor no elevator"),
	floorType_5("5","5 floor no elevator"),
	floorType_6("6","6 floor no elevator"),
	floorType_7("7","7 floor no elevator"),
	floorType_8("8","8 floor no elevator");

	private String code;
	private String desc;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	FloorType(String code, String desc){
		this.code=code;
		this.desc=desc;
	}
	
	public static String getValue(String code){
		for (FloorType type : values()) {
			if(type.getCode().equals(code)){
				return type.getDesc();
			}
		}
		return null;
	}
}
